home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol A-4
/
(Vol A-4) Vol. A4.iso
/
Games
/
puppy_red.swf
/
scripts
/
frame_1
/
DoAction.as
< prev
Wrap
Text File
|
2008-03-11
|
688b
|
39 lines
function sendScore()
{
sendOb.gCode = 2;
sendob.score = score;
scoreURL = "/servlet/trid.game.GameResultServlet";
sendOb.onData = function()
{
this.removeMovieClip();
};
}
function urlChk()
{
var i = 0;
while(i < _url.length - 10)
{
if(_url.substr(i,12) == "puppyred.com")
{
return 1;
}
i++;
}
return 1;
}
fscommand("trapallkeys");
levelup = 0;
if(!originallevel)
{
originallevel = userlevel.split("")[0];
userlevel = userlevel.split("")[1];
}
userlevel = 1;
stopAllSounds();
if(!urlChk())
{
stop();
fscommand("quit");
getUrl("javascript:window.close();", "");
}